#pragma comment (lib, "SDLmain.lib")
#pragma comment (lib, "SDL.lib")
#pragma comment (lib, "SDL_image.lib")
#pragma comment (lib, "SDL_ttf.lib")
#ifdef _DEBUG
# pragma comment (lib, "../Debug/UI.lib")
# pragma comment (lib, "../Debug/Gomoku.lib")
# pragma comment (lib, "../Debug/IA.lib")
#else
# pragma comment (lib, "../Release/UI.lib")
# pragma comment (lib, "../Release/Gomoku.lib")
# pragma comment (lib, "../Release/IA.lib")
#endif

#include <iostream>
#include "debug.h"
#include "MainWindow.h"
#include "Gomoku.h"
#include "ThreadManager.h"

int main(int _argc, char** _argv)
{
	Gomoku& g = Gomoku::Instance();

	MainWindow w;
	w.init();
	while (w.IsClosed() == false)
	{
		w.update();
	}
	COUT_ENDL("Waiting for threads...");
	delete Gomoku::Instance().Threads;
	//getchar();
	return (EXIT_SUCCESS);
}